#include "Character.h"
#include <iostream>
#include <cstdlib>
#include <ctime>

Warrior::Warrior()
{
    atk=5;
    def=5;
    mag=5;
    temp=0;
    focus=true;

}

int Warrior::Get_ATK()
{
    srand((unsigned)time(0));
    temp= atk +(rand()%8);
    return temp;
}

int Warrior::Get_DEF()
{
    srand((unsigned)time(0));
    temp= def +(rand()%6);
    return temp;
}

int Warrior::Get_MAG()
{
    srand((unsigned)time(0));
    temp= mag +(rand()%4);
    return temp;}

int Warrior::Get_FOCUS()
{
    return focus;
}

int Warrior::Set_FOCUS()
{
    if(focus=true)
        focus=false;
    else
        focus=true;
    return focus;
}


